package one.stand.fallback;

import one.stand.feign.UserFegin;
import one.stand.model.ResultModel;
import one.stand.request.*;
import one.stand.request.coupon.CouponQuery;
import one.stand.request.coupon.GoodsCouponQuery;
import one.stand.request.live.LiveRequest;
import one.stand.response.*;
import one.stand.response.live.LiveResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Component
public class UserFallBack implements UserFegin {

    @Override
    public ResultModel<List<BusinessCardResponse>> seeDetail(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<BusinessCardResponse>> findDefaultBusinessCards(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> createCard(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updateCard(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<BusinessCardResponse> cardDetails(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<BusinessCardResponse> findBusinessCardDetail(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel isTop(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addCollection(CollectionRequest collectionRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Integer> getIsCollection(CollectionRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delCollection(CollectionRequest collectionRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCollection(CollectionRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addAddress(AddressRequest addressRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updAddress(AddressRequest addressRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delAddress(AddressRequest addressRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel isdefult(AddressRequest addressRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCompanyAllInfo(CompanyRequest companyRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<DynamicResponse>> getDynamicInfo(DynamicRequest dynamicRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel doDynamicThumbs(DynamicRequest dynamicRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getWebsiteInfo(WebsiteRequest websiteRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel doComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyRecruitResponse>> getCompanyRecruit(CompanyRecruitRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addDemand(DemandRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Integer> addFormId(UserRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<UserCommonResponse>> selectUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveUserCommon(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> insertUserLevel(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getUserLevelInfo(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> saveInvitationCard(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> saveDistributor(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> myInvitationList(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> applyBusinessList(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<UserLevelResponse>> distributorOrderList(UserLevelRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getAddress(TokenRequest tokenRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCompanyInfo(CompanyRequest companyRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsType(GoodstypeRequest goodstypeRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsList(GoodsRequest goodsRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodSpec(GoodSpecRequest goodSpecRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsInfo(GoodsRequest goodsRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectShopcart(ShopcartRequest shopcartRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addShopcart(ShopcartRequest shopcartRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delShopcart(ShopcartRequest shopcartRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updShopcartNum(ShopcartRequest shopcartRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel directOrder(OrderinfoRequest orderinfoRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<OrdersResponse>> getOrderList(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<Map<String, Object>>> getOrderListCount(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, String>> goPay(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, String>> goPayNew(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, String>> goTwoPay(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public String paymentOrders(String request) {
        return fail();
    }

    public String fail() {
        return "<xml> \n" + "  <return_code><![CDATA[fail]]></return_code>\n" + "  <return_msg><![CDATA[OK]]></return_msg>\n" + "</xml>";
    }

    @Override
    public ResultModel refundOrder(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel backRefundState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> shopcartOrder(ShopcartRequest shopcartRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel shopAddCollection(CollectionRequest collectionRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<OrdersResponse>> getOrderInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<OrdersResponse>> getPayOrderInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateOrderState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel doReminder(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel anotherOrder(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Integer> openOrJoinAssemble(AssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getUserCard(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delSeeCard(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel doThumbs(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getWxTwoCode(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addCallsRecord(CallsPhoneRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<SunCodeResponse> getSunCode(SunCodeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel saveOfficialApply(OfficialApplyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel saveOfficialContact(OfficialContactRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel saveOfficialFrom(OfficialFromRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addConsultRecord(ConsultRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Integer> addGoodsForwardRecord(GoodsForwardRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> validGoodsForwardRecord(GoodsForwardRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addDynamicForwardRecord(DynamicForwardRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addCallsPhoneRecord(CallsPhoneRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectRoyaltyRecord(RoyaltyRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyPhotoResponse>> selectCompanyPhoto(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> doCash(RoyaltyRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCardPoster(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel goodsCard(GoodSpecRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getProductsCount(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsTypeList(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsTypePage(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsPage(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ProductsResponse> getProductsInfo(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectAppointmentPage(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AppointmentResponse> getAppointmentInfo(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertAppointment(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updAppointmentState(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addVideo(BusinessCardVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> uodVideo(BusinessCardVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveVideo(BusinessCardVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delVideo(BusinessCardVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<BusinessCardVideoResponse>> moveList(BusinessCardVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> receive(CouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel myList(UserCouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyCouponResponse>> noReceive(CouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyCouponResponse>> getCompanyCouponList(CouponQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyModuleConfigResponse>> findCompanyModuleConfigs(CompanyModuleConfigRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<SubscriptionNewResponse>> getComanySub(SubRequest request) {

        return ResultModel.faultTolerant();
    }
    /**
     * 发放优惠券
     * @param requestGrant
     */
    @Override
    public ResultModel grantCoupon(GrantCouponRequest requestGrant){
        return ResultModel.faultTolerant();
    }


    /**
     * 领取优惠券
     * @param couponRequest
     * @return
     */
    @Override
    public ResultModel<Boolean> receiveCoupon(CouponRequest couponRequest){
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<LiveResponse> queryLiveList(LiveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<UserCouponResponse>> selectUserCouponNotUsed(GoodsCouponQuery goodsCouponQuery) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel switchVideo(SwitchVideoRequest request) {
        return ResultModel.faultTolerant();
    }
}
